/*
 * create on 2008-3-11
 * Copy right (2008)
 * HNA System All rights reserved
 */
package com.myway.dto.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author nl_tan
 * 航段类
 */
public class Segment {

	/**
	 * 飞机号
	 */
	private String flightNo;

	/**
	 * 机型
	 */
	private String planeStyle;

	/**
	 * 起飞时间
	 */

	private Date departDate;
	
	/**
	 * 到达时间
	 */
	private Date arriveDate;
	
	/**
	 * 出发城市
	 */
	private String orgCity;

	/**
	 * 目的城市
	 */
	private String dstCity;

	/**
	 * 是否经停
	 */
	private int stops;
	
	private List<Cabin> cabins=new ArrayList<Cabin>();

	/**
	 * 是否代码共享航班
	 */
	private boolean codeShare;

	/**
	 * 出发航站楼
	 */
	private String depTerm;
	/**
	 * 到达航站楼
	 */
	private String arriTerm;

	/**
	 * @return the flightNo
	 */
	public String getFlightNo() {
		return this.flightNo;
	}

	/**
	 * @param flightNo
	 *            the flightNo to set
	 */
	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	/**
	 * @return the planeStyle
	 */
	public String getPlaneStyle() {
		return this.planeStyle;
	}

	/**
	 * @param planeStyle
	 *            the planeStyle to set
	 */
	public void setPlaneStyle(String planeStyle) {
		this.planeStyle = planeStyle;
	}

	/**
	 * @return the orgCity
	 */
	public String getOrgCity() {
		return this.orgCity;
	}

	/**
	 * @param orgCity the orgCity to set
	 */
	public void setOrgCity(String orgCity) {
		this.orgCity = orgCity;
	}

	/**
	 * @return the dstCity
	 */
	public String getDstCity() {
		return this.dstCity;
	}

	/**
	 * @param dstCity the dstCity to set
	 */
	public void setDstCity(String dstCity) {
		this.dstCity = dstCity;
	}

	/**
	 * @return the cabins
	 */
	public List<Cabin> getCabins() {
		return this.cabins;
	}

	/**
	 * @param cabins the cabins to set
	 */
	public void setCabins(List<Cabin> cabins) {
		this.cabins = cabins;
	}

	/**
	 * @return the departDate
	 */
	public Date getDepartDate() {
		return this.departDate;
	}

	/**
	 * @param departDate the departDate to set
	 */
	public void setDepartDate(Date departDate) {
		this.departDate = departDate;
	}

	/**
	 * @return the arriveDate
	 */
	public Date getArriveDate() {
		return this.arriveDate;
	}

	/**
	 * @param arriveDate the arriveDate to set
	 */
	public void setArriveDate(Date arriveDate) {
		this.arriveDate = arriveDate;
	}

	/**
	 * @return the stops
	 */
	public int getStops() {
		return this.stops;
	}

	/**
	 * @param stops the stops to set
	 */
	public void setStops(int stops) {
		this.stops = stops;
	}

	public String getDepTerm() {
		return depTerm;
	}

	public void setDepTerm(String depTerm) {
		this.depTerm = depTerm;
	}


	public String getArriTerm() {
		return arriTerm;
	}

	public void setArriTerm(String arriTerm) {
		this.arriTerm = arriTerm;
	}

	public boolean isCodeShare() {
		return codeShare;
	}

	public void setCodeShare(boolean codeShare) {
		this.codeShare = codeShare;
	}


	public Segment(){}

	public Segment(String flightNo, String planeStyle, Date departDate, Date arriveDate, String orgCity, String dstCity, int stops, boolean codeShare, String depTerm, String arriTerm) {
		this.flightNo = flightNo;
		this.planeStyle = planeStyle;
		this.departDate = departDate;
		this.arriveDate = arriveDate;
		this.orgCity = orgCity;
		this.dstCity = dstCity;
		this.stops = stops;
		this.codeShare = codeShare;
		this.depTerm = depTerm;
		this.arriTerm = arriTerm;
	}
}
